package router

import "github.com/gin-gonic/gin"

func AnyRoute(r *gin.Engine) {
	r.Any("/test", func(c *gin.Context) {
		c.JSON(200, gin.H{
			"message": "test",
		})
	})

	//其他路径
	r.NoRoute(func(c *gin.Context) {
		c.HTML(200, "404.html", nil)
	})
}
